package com.ssn.chain.leave;

public class Client {
    public static void main(String[] args) {
        Handler teacher = new TeacherHandler();
        Handler dept = new DeptHandler();
        Handler dean = new DeanHandler();
        teacher.setNext(dept);
        dept.setNext(dean);
        teacher.handle(7);
    }
}
